package com.ly.heart.service.impl;

import com.ly.heart.domain.KingFinancePayRefundDetailEntity;
import com.ly.heart.mapper.KingFinancePayRefundDetailMapper;
import com.ly.heart.service.IKingFinancePayRefundDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 付款退款单明细 服务实现类
 * </p>
 *
 * @author WuZH
 * @since 2024-08-04
 */
@Service
public class KingFinancePayRefundDetailServiceImpl extends ServiceImpl<KingFinancePayRefundDetailMapper, KingFinancePayRefundDetailEntity> implements IKingFinancePayRefundDetailService {

    @Resource
    private KingFinancePayRefundDetailMapper kingFinancePayRefundDetailMapper;


    @Override
    public List<KingFinancePayRefundDetailEntity> selectPayRefundDetailList ( KingFinancePayRefundDetailEntity kingFinancePayRefundDetailEntity ) {
        List<KingFinancePayRefundDetailEntity> kingFinancePayRefundDetailEntities = kingFinancePayRefundDetailMapper.selectPayRefundDetailList ( kingFinancePayRefundDetailEntity );
        return kingFinancePayRefundDetailEntities;
    }

    /**
     * 通过付款单Id和审批状态，查询已退列表，通过退款使用
     * @param payId
     * @return
     */
    @Override
    public List<KingFinancePayRefundDetailEntity> queryList ( String payId ) {
        List<KingFinancePayRefundDetailEntity> kingFinancePayRefundDetailEntities = kingFinancePayRefundDetailMapper.queryList ( payId );
        return kingFinancePayRefundDetailEntities;
    }
}
